<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('users', UserController::class)->names('admin.users');
    $router->resource('permissions', PermissionController::class)->names('admin.permissions');
    $router->resource('roles', RoleController::class)->names('admin.roles');
    $router->resource('articles', ArticleController::class)->names('admin.articles');
    $router->resource('tags', TagController::class)->names('admin.tags');
    $router->resource('categories', CategoryController::class)->names('admin.categories');
    $router->resource('wechat', WechatController::class)->names('admin.wechat');
    $router->resource('site', SiteController::class)->names('admin.side');
});
